<template>
  <div>
    <el-button @click="dialogVisible = true">点击打开</el-button>
    <Dialog :show.sync="dialogVisible"></Dialog>

    <input type="text" v-model.number="num" />

    <p>经过处理: {{ toFixed(num, 2) }}</p>

    <Test></Test>
  </div>
</template>

<script>
import Dialog from './Dialog.vue'
import Test from './Test.vue'
import helper from './helper'
export default {
  components: { Dialog, Test },
  mixins: [helper],
  data() {
    return {
      dialogVisible: false,
      num: null,
      time: [1, 2, 3]
    }
  },
  created() {
    const obj = {
      a: this.time?.[0] ?? '111'
    }
    console.log(obj.a)
  },
  methods: {}
}
</script>

<style lang="less" scoped>
</style>